package com.whyx.project.openapi.util;

/**
 * Created with IDEA
 * author:cj
 * Date:2018/8/21
 * Time:9:41
 **/
public class Common {
    /*
     *接口接收到的城市编码转换成6位标准的城市编码
     * 小于4位直接报错，大于4位，取前4位加00补齐组成6位城市编码
     */
    public static String getStandardCityCode(String citycode){
        if(citycode==null||"".equals(citycode)||citycode.length()<4){
            return null;
        }
        return citycode.substring(0,4)+"00";
    }
}
